<div class="model-header"  >
        <nz-content class="model-body">
            <div class="body-top">
                <form nz-form [formGroup]="validateForm" class="ant-advanced-search-form" [nzLayout]="vertical" (ngSubmit)="submitForm(validateForm)">
                    <div nz-col [nzSpan]="8">
                        <nz-form-item nz-row nzFlex>
                            <nz-form-label style="text-align: center;" [nzSpan]="6" [nzFor]="type">科室名称</nz-form-label>
                            <nz-tree-select
                                [nzNodes]="nodes"
                                nzShowSearch
                                formControlName="ksSel"
                                [nzDropdownStyle]="{ 'max-height': '300px' }"
                                nzPlaceHolder="请选择科室"
                                (ngModelChange)="onKSChange($event);"
                            >
                            </nz-tree-select>
                        </nz-form-item>
                        
                    </div>
               
                </form>
                <div class="from-footer"></div>
            </div>
            <nz-table #columnTable [nzData]="_data" [nzScroll]="{ x: '1100px', y: '350px'  }">
                    <thead>
                      <tr class="my-table">
                        <th nzWidth="100px" nzLeft="0px">处方号</th>
                        <th nzWidth="80px" nzLeft="100px">状态</th>
                        <th nzWidth="120px">科室</th>
                        <th nzWidth="150px">开方时间</th>
                        <th nzWidth="230px">原处方号码</th>
                        <th nzWidth="100px">审方时间</th>
                        <th nzWidth="80px">类型</th>
                        <th nzRight="100px" nzWidth="100px">审方人</th>
                        <th nzWidth="100px" nzRight="0px">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr *ngFor="let data of _data">
                        <td nzLeft="0px">{{ data.cfhm }}</td>
                        <td nzLeft="100px">{{ data.zt }}</td>
                        <td>{{ data.ks }}</td>
                        <td>{{ data.kfsj }}</td>
                        <td>{{ data.ycfhm }}</td>
                        <td>{{ data.sfsj }}</td>
                        <td>{{ data.lx }}</td>
                        <td nzRight="100px">{{ data.sfr }}</td>
                        <td nzRight="0px">
                          <a (click)='onDtl(data)'>查看</a>
                        </td>
                      </tr>
                    </tbody>
                  </nz-table>
            <!-- <div class="account-table">
                <app-wallet-table #child  [data]="_data" [titleData]="_config" [page]="_page" (tabelEvent)="onListClick($event)"></app-wallet-table>
            </div> -->
    
    
            <nz-drawer
            [nzBodyStyle]="{ height: 'calc(100% - 55px)', overflow: 'auto', 'padding-bottom': '53px' }"
            [nzMaskClosable]="false"
            [nzWidth]="920"
            [nzVisible]="visible"
            nzTitle="处方详情"
            (nzOnClose)="close()"
            >
            <form nz-form>
                    <div nz-row nzGutter="8">
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                            <nz-form-label nz-col nzSpan="6">门诊号</nz-form-label>
                            <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                    {{dtlData?.mzh}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">就诊状态</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.jzzt}}
                                    </nz-form-control>
                                </nz-form-item>
                            </div>
                            <div nz-row nzGutter="8">
                                <div nz-col nzSpan="12">
                                    <nz-form-item nz-row>
                                        <nz-form-label nz-col nzSpan="6">开方医生</nz-form-label>
                                        <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                                {{dtlData?.ys}}
                                            </nz-form-control>
                                        </nz-form-item>
                                    </div>
                                    <div nz-col nzSpan="12">
                                        <nz-form-item nz-row>
                                            <nz-form-label nz-col nzSpan="6">开方日期</nz-form-label>
                                            <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                                {{dtlData?.kfsj}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                    </div>
                    <div nz-row nzGutter="8">
                        <div nz-col nzSpan="24">
                            <nz-form-label><strong>病人信息</strong></nz-form-label>
                        </div>
                        <nz-divider></nz-divider>
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">姓名</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                    {{dtlData?.hzxm}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                        
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">就诊卡号</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.jzkh}}
                                    </nz-form-control>
                                </nz-form-item>
                            </div>
                        </div>
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">性别</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.sex}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                        
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">年龄</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.nl}}岁
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                    </div>
        
                    <div  nzGutter="16">
                        <nz-form-label><strong>诊断名称</strong></nz-form-label>
                        <nz-form-control class="my-font-t">
                                {{dtlData?.zdmc}}
                        </nz-form-control>
                    </div>
                    <div nz-row nzGutter="16">
                        <div nz-col nzSpan="24">
                            <nz-form-label><strong>处方内容</strong></nz-form-label>
                            <nz-alert style="margin-bottom: 1rem;" *ngIf='isShow' nzType="error" nzMessage="α、β 肾上腺受体阻断剂应禁止与胞磷胆碱钠片联合用药，前者易对后者产生抑制作用。联合用药会导致二者血药浓度增加，引起心动过缓以及血压下降等中毒症状，严重时甚至会引发心功能不全以及呼吸抑制与窒息等"></nz-alert>
                            <nz-form-control class="my-font-table">
                                <!-- <app-wallet-table [data]="dtlData?.list || []" [titleData]="_configY" [page]="_page" (tabelEvent)="onListClick($event)"></app-wallet-table> -->
                                <nz-table #columnTable *ngIf="dtlData" [nzData]="dtlData?.list" [nzHideOnSinglePage]='true'  [nzScroll]="{ x: '1100px', y: '350px'  }">
                                        <thead>
                                          <tr class="my-table">
                                            <th nzWidth="100px" >名称</th>
                                            <th nzWidth="80px" >规格</th>
                                            <th nzWidth="100px">包装规格</th>
                                            <th nzWidth="80px">开方数量</th>
                                            <th nzRight="80px" nzWidth="100px">流转标志</th>
                                            <th nzWidth="80px" nzRight="0px">备注</th>
                                          </tr>
                                        </thead>
                                        <tbody>
                                          <tr *ngFor="let data of dtlData?.list" [ngStyle]="{'color': data.isJy === '不可流转' ? 'red' : '' }" >
                                            <td >{{ data.mc }}</td>
                                            <td >{{ data.gg }}</td>
                                            <td>{{ data.bzgg }}</td>
                                            <td>{{ data.kfsl }}</td>
                                            <td nzRight="80px">{{ data.isJy }}</td>
                                            <td nzRight="0px">{{ data.bhyy }}
                                            </td>
                                          </tr>
                                        </tbody>
                                      </nz-table>
                            </nz-form-control>
                        </div>
                    </div>
                    <div nz-row nzGutter="16">
                        <div nz-col nzSpan="24">
                            <nz-form-label><strong>医嘱</strong></nz-form-label>
                            <nz-form-control  class="my-font-t">
                            </nz-form-control>
                        </div>
                    </div>
                </form>
    
            <div class="footer">
                <button type="button" (click)="closeBH()" class="ant-btn" style="margin-right: 8px;"><span>返回</span></button>
            </div>
    
        </nz-drawer>

    </nz-content>
    
    </div>
    
    